from peewee import *

database = MySQLDatabase('audi', **{'charset': 'utf8', 'sql_mode': 'PIPES_AS_CONCAT', 'use_unicode': True, 'host': '127.0.0.1', 'port': 3306, 'user': 'root', 'password': 'lc685137'})

class UnknownField(object):
    def __init__(self, *_, **__): pass

class BaseModel(Model):
    class Meta:
        database = database

class AudiParts(BaseModel):
    brand_code = CharField(column_name='brandCode', null=True)
    cylinder = CharField(null=True)
    desc = CharField(null=True)
    displacement = CharField(null=True)
    drive = CharField(null=True)
    drive_new = CharField(null=True)
    engine_code = CharField(null=True)
    label = CharField(null=True)
    pid = CharField(index=True, null=True)
    replace = CharField(null=True)
    standard_label = CharField(null=True)
    trans_desc = CharField(null=True)
    transmission = CharField(null=True)
    diff_mech = CharField(null=True)

    class Meta:
        table_name = 'audi_parts'
        primary_key = False

